<?php
/**
 * Created by PhpStorm.
 * 数据字典
 * User: acker
 * Date: 21-06-08
 * Time: 下午6:25
 */

namespace App\Models;
use Illuminate\Database\Eloquent\Model;


class DataDictionaryModel extends Model
{
    const GoodsStatus = [
        '0' => '下架',
        '1' => '上架',
    ];
    const Status = [
        '0' => '禁用',
        '1' => '启用',
    ];
    const Whether = [
        '0' => '否',
        '1' => '是',
    ];

    const AuditStatus = [
        '0' => '待审核',
        '1' => '通过',
        '2' => '驳回',
    ];

    const LossReportStatus = [
        '0' => '待审核',
        '1' => '通过',
        '2' => '不通过'
    ];

    const GoodsDeliveryType = [
        '1' => '门店及送',
        '2' => '次日发'
    ];

    const DistributionType = [
        '1' => '普通',
        '2' => '积分兑换',
        '3' => '新人大礼包',
        '4' => '其他',

    ];

    const CouponType = [
        '1' => '全场通用',
        '2' => '品类券',
        '3' => '单品/组合',
    ];

    const CouponDispatchType= [
        '1' => '全部用户',
        '2' => '单用户',
        '3' => '注册时间',
    ];
    const ShortLinkOptions = [
        '1' => '首页',
    ];

    const ShortLink = [
        0 => [
          'title' => '首页',
          'path' => 'pages/index/home'
        ],
    ];

    protected function oddNumbers($order_head =""){
        $date = date('Ymd');
        return $order_head.$date . str_pad(mt_rand(1, 99999), 5, '0', STR_PAD_LEFT);
    }

}
